//
//  Pedometer.swift
//  FitNess
//
//  Created by lanjing on 2021/4/7.
//  Copyright © 2021 Razeware. All rights reserved.
//

import Foundation

protocol Pedometer{
  var pedometerAvailable: Bool {get}
  var permissionDeclined: Bool {get}
  
  func start(dataUpdates: @escaping (PedometerData?, Error?) -> Void,
             eventUpdates: @escaping (Error?) -> Void)
}

protocol PedometerData{
  var steps: Int { get }
  var distanceTravelled: Double { get }
}
